package com.example.chinesenation.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chinesenation.Entity.User;
import com.example.chinesenation.Response.ServerResponse;
import com.example.chinesenation.Utils.Audience;
import com.example.chinesenation.VO.LoginData;
import org.springframework.stereotype.Service;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/1/11 16:30
 */
public interface UserService extends IService<User> {
    ServerResponse<LoginData> login(String uid, String password, String browse,String ip,Audience audience);
    ServerResponse<String> register(User user);
    ServerResponse<String> update(User user);

    User findUserButNotUidAndPassword(String uid,String token);
}
